package com.example.administrator.yunniuusedcar.adapter;

import android.content.Context;
import android.view.ViewGroup;

import com.example.administrator.yunniuusedcar.model.Contact;
import com.example.administrator.yunniuusedcar.holder.BaseHolder;
import com.example.administrator.yunniuusedcar.holder.ContactHolder;

import java.util.List;

/**
 * 选择车型 列表适配器
 *
 * @author LQW
 */
public class ContactAdapter extends MyBaseAdapter<Contact> {

    public ContactAdapter(Context context, List<Contact> listData) {
        super(context, listData);
    }

    @Override
    public BaseHolder<Contact> createViewHolder(
            Context context, ViewGroup parent, Contact bean, int position) {
        return new ContactHolder(context, parent, this, position, bean);
    }
}
